<?php
function xmldb_format_aformat_upgrade($oldversion = 0) {
    $result = true;

    if ($result && $oldversion < 2010082900) {
/// Changing list of values (enum) of field postssorting on table aformat_forum_themes to 'posted ASC', 'posted DESC'
        $table = new XMLDBTable('aformat_forum_themes');
        $field = new XMLDBField('postssorting');
        $field->setAttributes(XMLDB_TYPE_CHAR, '255', null, null, null, XMLDB_ENUM, array('posted ASC', 'posted DESC'), 'posted ASC', 'penalpointsafterdays');

    /// Launch change of list of values for field postssorting
        $result = $result && change_field_enum($table, $field);


    }

    return $result;
}
?>
